<?php
declare(strict_types=1);

namespace Service\ShareCenterService;

use Service\Code\Normal;
use Service\BaseService;
use Service\VenderClient\ShareCenter\ShareCenterApi;

class ShareCenterService extends BaseService
{
    public function ocrIdCard(array $param) {
        if(empty($param['image_base64'])){
            return Normal::returnCode(Normal::FAIL,'图片的base64加密的二进制数据必传');
        }
        return (new ShareCenterApi())->ocrIdCard($param);
    }
    public function messageDeal(array $param) {        
        if(empty($param)){
            return Normal::returnCode(Normal::FAIL,'参数必传');
        }
        
        return (new ShareCenterApi())->messageDeal($param);
    }
}
